'use strict';
/*
  两种网络请求：postRequest => POST, getRequest => GET
  请求头header: 默认json，支持自定义({})或快速写入('form', 'json')
*/

var __importDefault =
    (this && this.__importDefault) ||
    function (mod) {
        return mod && mod.__esModule
            ? mod
            : {  
                  default: mod
              };
    };

// exports.__esModule = true;
var globalData_1 = require('../globalData');
var request_1 = __importDefault(require('./../utils/request.js'));
var request = new request_1['default']({
	ApiUrl: globalData_1['default'].URL+'/api-service'
});


// 预约充电
exports.reservation = function (params) {
    return request.postRequest({
        url: 'privatePileShareReservation/reservation',
        data: params
    });
};


// 是否是预约充电
exports.isChargingAllowed = function (params) {
    return request.postRequest({
        url: 'privatePileShareReservation/isChargingAllowed',
        data: params
    });
};



// 审批
exports.accept = function (params) {
    return request.postRequest({
        url: 'privatePileShareReservation/accept',
        data: params
    });
};



// 查询预约记录
exports.reservationPages = function (params) {
    return request.postRequest({
        url: 'privatePileShareReservation/reservationPages',
        data: params
    });
};



// 已读
exports.memberRead = function (params) {
    return request.postRequest({
        url: 'privatePileShareReservation/memberRead',
        data: params
    });
};



